import * as actionType from '../action/action-login-type'

export default function login_reducer(state = null, action) {
    switch (action.type) {
        case actionType.loginUser:
            return action.payload
        case actionType.CloseUser:
            return null
        default:
            return state
    }
}